package com.example.blog.dao;

import com.example.blog.entity.LikePostOrComment;
import com.example.blog.entity.PostClassInfo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import javax.persistence.*;
import java.util.Date;
import java.util.Map;

/**
 * @ClassName: psotClassInfo
 * @Description: 帖子分类

 * @Date 2024/2/5
 * @Version 1.0
 */
@Repository
public interface PostClassInfoRepository  extends JpaRepository<PostClassInfo,String>, JpaSpecificationExecutor<PostClassInfo> {

    Page<Map<String, Object>> findBy(Pageable pageable);
}
